package com.dcd.mapper;

import com.dcd.pojo.Follow_car_series;
import org.springframework.stereotype.Repository;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface Follow_car_seriesMapper {

    /**
     * 关注指定车系
     *
     * @param follow_car_series 关注车系对象
     * @return
     */
    int insert_follow_car_series(Follow_car_series follow_car_series);

    /**
     * 删除指定用户关注的车系
     *
     * @param follow_car_series 关注车系对象
     * @return
     */
    int delete_follow_car_series(Follow_car_series follow_car_series);

    /**
     * 查询用户是否关注指定车系
     *
     * @param follow_car_series
     * @return
     */
    int select_user_whether_follow_car_series(Follow_car_series follow_car_series);

    /* 根据用户登录的id查询所有关注的车系
     * @param user_id 登录的用户id
     * @return
     */
    List<Follow_car_series> select_follow_car_series(@Param("user_id") int user_id);

}
